package com.naodong.shenluntiku.mvp.model.bean;

import net.orange_box.storebox.annotations.method.ClearMethod;
import net.orange_box.storebox.annotations.method.KeyByString;
import net.orange_box.storebox.annotations.method.TypeAdapter;

/**
 * Created by hujie on 17/5/26.
 */

public class UserInfo {

    private String acUuid;
    private String nickname;
    private String relativeAvatar;//头像相对地址
    private String avatar;

    public String getRelativeAvatar() {
        return relativeAvatar;
    }

    public String getAcUuid() {
        return acUuid;
    }

    public void setAcUuid(String acUuid) {
        this.acUuid = acUuid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setRelativeAvatar(String relativeAvatar) {
        this.relativeAvatar = relativeAvatar;
    }

    public interface UserInfoPerferences {

        @KeyByString("key_userinfo")
        @TypeAdapter(UserInfoTypeAdapter.class)
        void saveUserInfo(UserInfo token);

        @KeyByString("key_userinfo")
        @TypeAdapter(UserInfoTypeAdapter.class)
        UserInfo getUserInfo();

        @ClearMethod
        void clear();
    }
}
